package com.it.base.arithmetic.base.dm.strategy;

import java.util.HashMap;
import java.util.Map;

public class TestMain {
    public static void main(String[] args) {
        // 构建策略上下文
        StrategyContext context = new StrategyContext();
        // 构建参数
        Map<String,Object> params = new  HashMap();
        params.put("ali","ss");
       boolean bl =  context.isAliPay(params,"ali");
       System.out.println(bl);
       // 构建一个参数错误的示范
        // 构建参数
        Map<String,Object> paramsWX = new  HashMap();
        params.put("ali",1);
        boolean blwx =  context.isAliPay(paramsWX,"wx");
        System.out.println(blwx);
    }
}
